package cn.elwy.rcp.kit.action;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
import org.eclipse.ui.PlatformUI;

/**
 * 退出RCP工程
 * @author huangsq
 * @version 1.0, 2013-12-29
 * @since 1.0, 2013-12-29
 */
public class ExitAction implements IWorkbenchWindowActionDelegate {

    @Override
    public void init(IWorkbenchWindow window) {
    }

    @Override
    public void run(IAction action) {
        PlatformUI.getWorkbench().close();
    }

    @Override
    public void selectionChanged(IAction action, ISelection selection) {
    }

    @Override
    public void dispose() {
    }

}
